home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000888_rab@tauon.ph.unimelb.edu.au_Sun Aug 28 01:26:02 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  4KB

  1. Received: from tauon.ph.unimelb.EDU.AU by cs.umb.edu with SMTP id AA14515
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Sun, 28 Aug 1994 01:26:02 -0400
  3. Received: from localhost by tauon.ph.unimelb.edu.au (AIX 3.2/UCB 5.64/4.03)
  4.           id AA19204; Sun, 28 Aug 1994 14:29:37 +1000
  5. Message-Id: <9408280429.AA19204@tauon.ph.unimelb.edu.au>
  6. To: tex-k@cs.umb.edu
  7. Subject: xdvik-1.6 patches for AIX
  8. Date: Sun, 28 Aug 1994 14:29:36 EET
  9. From: Richard Brown <rab@tauon.ph.unimelb.edu.au>
  10.  
  11. Hello,
  12.     I have just upgraded our entire TeX distribution with your
  13. kpathsea versions. All went fine, except for the above-mentioned
  14. package.  Unfortunately, the C preprocessor barfs on null arguments, so
  15. the WIDEARG(,b) stuff in xdvik fails. I don't see a nice way around
  16. this, so I patched the 3 offending files. If you can find a better way
  17. around this, so much the better.
  18.  
  19.  
  20. *** dvi_init.c.orig    Sun Aug 28 14:13:47 1994
  21. --- dvi_init.c    Sun Aug 28 14:18:05 1994
  22. ***************
  23. *** 17,24 ****
  24. --- 17,26 ----
  25.    * 1/1992    Added greyscale code    --Till Brychcy, Techn. Univ. Muenchen
  26.    *                      and Lee Hetherington, MIT
  27. +  * 8/1994    Added AIX support    --Richard Brown, U of Melbourne
  28.    *
  29.    *    Compilation options:
  30.    *    SYSV    compile for System V
  31.    *    VMS    compile for VMS
  32. +  *    _AIX    compile for AIX
  33.    *    X10    compile for X10
  34.    *    NOTOOL    compile without toolkit (X11 only)
  35. ***************
  36. *** 223,232 ****
  37. --- 225,242 ----
  38.           while (maxchar > 0 && fontp->macro[maxchar].pos == NULL) --maxchar;
  39.           if (maxchar < 255)
  40. + #ifdef _AIX
  41. +         realloc_virtual_font(fontp, (int) maxchar);
  42. + #else
  43.           realloc_virtual_font(fontp, WIDEARG(,(int)) maxchar);
  44. + #endif
  45.       }
  46.       else {
  47.           while (maxchar > 0 && fontp->glyph[maxchar].addr == 0) --maxchar;
  48.           if (maxchar < 255)
  49. + #ifdef _AIX
  50. +         realloc_font(fontp, (int) maxchar);
  51. + #else
  52.           realloc_font(fontp, WIDEARG(,(int)) maxchar);
  53. + #endif
  54.       }
  55.       return False;
  56. *** dvi_draw.c.orig    Sun Aug 28 14:13:43 1994
  57. --- dvi_draw.c    Sun Aug 28 14:16:33 1994
  58. ***************
  59. *** 17,24 ****
  60. --- 17,26 ----
  61.    * 1/1992    Added greyscale code    --Till Brychcy, Techn. Univ. Muenchen
  62.    *                      and Lee Hetherington, MIT
  63. +  * 8/1994    Added AIX support    --Richard Brown, U of Melbourne
  64.    *
  65.    *    Compilation options:
  66.    *    SYSV    compile for System V
  67.    *    VMS    compile for VMS
  68. +  *    _AIX    compile for AIX
  69.    *    X10    compile for X10
  70.    *    NOTOOL    compile without toolkit (X11 only)
  71. ***************
  72. *** 545,549 ****
  73. --- 547,555 ----
  74.   #endif
  75.   
  76. + #ifdef _AIX
  77. +     if (ch > maxchar) realloc_font(currinf.fontp, (int) ch);
  78. + #else
  79.       if (ch > maxchar) realloc_font(currinf.fontp, WIDEARG(,(int)) ch);
  80. + #endif
  81.       if ((g = &currinf.fontp->glyph[ch])->bitmap.bits == NULL) {
  82.           if (g->addr == 0) {
  83. *** gf.c.orig    Sun Aug 28 14:13:52 1994
  84. --- gf.c    Sun Aug 28 14:19:16 1994
  85. ***************
  86. *** 86,90 ****
  87. --- 86,94 ----
  88.           case XXX4:
  89.               Fseek(GF_file, (long) num(GF_file,
  90. + #ifdef _AIX
  91. +             (int) cmnd - XXX1 + 1), 1);
  92. + #else
  93.               WIDEARG(,(int)) cmnd - XXX1 + 1), 1);
  94. + #endif
  95.               continue;
  96.           case YYY:
  97. ***************
  98. *** 144,148 ****
  99. --- 148,156 ----
  100.           case PAINT2:
  101.           case PAINT3:
  102. + #ifdef _AIX
  103. +             count = num(GF_file, (int) cmnd - PAINT1 + 1);
  104. + #else
  105.               count = num(GF_file, WIDEARG(,(int)) cmnd - PAINT1 + 1);
  106. + #endif
  107.               break;
  108.           case EOC:
  109. ***************
  110. *** 153,157 ****
  111. --- 161,169 ----
  112.           case SKIP3:
  113.               *((char **) &basep) +=
  114. + #ifdef _AIX
  115. +             num(GF_file, (int) cmnd - SKIP0) * bytes_wide;
  116. + #else
  117.               num(GF_file, WIDEARG(,(int)) cmnd - SKIP0) * bytes_wide;
  118. + #endif
  119.           case SKIP0:
  120.               new_row = True;
  121. ***************
  122. *** 163,167 ****
  123. --- 175,183 ----
  124.           case XXX4:
  125.               Fseek(GF_file, (long) num(GF_file,
  126. + #ifdef _AIX
  127. +             (int) cmnd - XXX1 + 1), 1);
  128. + #else
  129.               WIDEARG(,(int)) cmnd - XXX1 + 1), 1);
  130. + #endif
  131.               break;
  132.           case YYY:
  133.  
  134.  
  135. rab
  136. ------------------------------------------------------------------------
  137. Richard Brown                     | E-mail: rab@tauon.ph.unimelb.EDU.AU
  138. School of Physics                 | Phone : +61 3 344 5081
  139. University of Melbourne           | Fax   : +61 3 347 4783
  140. Parkville Victoria AUSTRALIA 3052 | Telex : AA35185